package com.xin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.entity.crm.EmployEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<EmployEntity> {

    /**
     * 分页查找所有员工数据
     * @param page
     * @param size
     * @return
     */
    List<EmployEntity> findAll(@Param("page")Integer page,@Param("size")Integer size,@Param("name")String name);

    /**
     * 查找全部数据
     * @return
     */
    List<EmployEntity> findAllList();


    /**
     * 根据店铺id查询出该员工信息
     * @param shpId
     * @return
     */
    EmployEntity findByShopId(@Param("shopId")Long shpId);



}
